package cn.agiledata.bank.transaction.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

/**
 * 子账户间转账Form
 * 
 * @author maxianbo
 * 
 */
public class SubAccountTransferForm extends MultiStepForm {
    private long debitSubAccountId;

    private long creditSubAccountId;

    private String amount;

    public SubAccountTransferForm() {
        super();
        this.debitSubAccountId = 0;
        this.creditSubAccountId = 0;
        this.amount = "";
    }

    public String getAmount() {
        return this.amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public long getCreditSubAccountId() {
        return this.creditSubAccountId;
    }

    public void setCreditSubAccountId(long creditSubAccountId) {
        this.creditSubAccountId = creditSubAccountId;
    }

    public long getDebitSubAccountId() {
        return this.debitSubAccountId;
    }

    public void setDebitSubAccountId(long debitSubAccountId) {
        this.debitSubAccountId = debitSubAccountId;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
        super.reset(mapping, request);
        if (isResetable()) {
            this.debitSubAccountId = 0;
            this.creditSubAccountId = 0;
            this.amount = "";
        }
    }
}
